package vip.kqsy.cloud.blog.server.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import vip.kqsy.cloud.core.web.res.BaseVO;

import java.time.LocalDateTime;
import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
public class ListCommentVO extends BaseVO {
    @ApiModelProperty(value = "昵称", required = true)
    private String nickname;

    @ApiModelProperty(value = "头像", required = true)
    private String avatar;

    @ApiModelProperty(value = "内容", required = true)
    private String content;

    private List<Item> subList;

    @Data
    public static class Item {
        @ApiModelProperty(value = "昵称", required = true)
        private String nickname;

        @ApiModelProperty(value = "内容", required = true)
        private String content;

        @JsonFormat(
                pattern = "yyyy-MM-dd HH:mm:ss"
        )
        private LocalDateTime createTime;
    }
}
